const routes = [
    {name: "Login", //组件名称
        path: "/login", //访问组件的 URL 路径
        component: () => import('@/login') //导入组件
    },
    {name: "Index",
        path: "/index",
        component: () => import('@/index'),
        children:[
            {name: "Product",
                path: "/index/product",
                component: () => import('@/product/product')
            },
            {name: "Customer", //组件名称
                path: "/index/customer", //访问组件的 URL 路径
                component: () => import('@/data/customer') //导入组件
            },
            {name: "Supplier", //组件名称
                path: "/index/supplier", //访问组件的 URL 路径
                component: () => import('@/data/supplier') //导入组件
            },
            {name: "BuyerCar", //组件名称
                path: "/index/buyerCar", //访问组件的 URL 路径
                component: () => import('@/purchase/buyerCar') //导入组件
            },
            {name: "Buyer", //组件名称
                path: "/index/buyer", //访问组件的 URL 路径
                component: () => import('@/purchase/buyer') //导入组件
            },
            {name: "SaleCar", //组件名称
                path: "/index/saleCar", //访问组件的 URL 路径
                component: () => import('@/sale/saleCar') //导入组件
            },
            {name: "Sale", //组件名称
                path: "/index/sale", //访问组件的 URL 路径
                component: () => import('@/sale/sale') //导入组件
            },
            {name: "StatisticsAll", //组件名称
                path: "/index/statisticsAll", //访问组件的 URL 路径
                component: () => import('@/count/statisticsAll') //导入组件
            },
            {name: "StatisticsYear", //组件名称
                path: "/index/statisticsYear", //访问组件的 URL 路径
                component: () => import('@/count/statisticsYear') //导入组件
            },
            {name: "User", //组件名称
                path: "/index/user", //访问组件的 URL 路径
                component: () => import('@/user/user') //导入组件
            },
            {name: "Role", //组件名称
                path: "/index/role", //访问组件的 URL 路径
                component: () => import('@/user/role') //导入组件
            },
            {name: "Journal", //组件名称
                path: "/index/journal", //访问组件的 URL 路径
                component: () => import('@/journal/journal') //导入组件
            },
            {name: "UpdatePwd", //组件名称
                path: "/index/updatePwd", //访问组件的 URL 路径
                component: () => import('@/user/updatePwd') //导入组件
            },
        ]
    },

];

export default routes;